package com.login.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aop.annotaions.FilterAnnotaions;
import com.login.dao.LoginDao;
import com.login.model.LoginDo;
import com.login.service.LoginService;

@Service(value="loginService")
@Transactional  //此处不再进行创建SqlSession和提交事务，都已交由spring去管理了。
public class LoginServiceImpl implements LoginService{
	@Resource
	private LoginDao loginMapper;

	@Override
	@FilterAnnotaions(aaa = "121")
	public List<LoginDo> findLogin(LoginDo l) {
		List<LoginDo> list = loginMapper.findLogin(l);
 		return list;
	}
	
//	@FilterAnnotaions
//	public List<LoginDo> findLogin(LoginDo l) {
//		List<LoginDo> list = loginMapper.findLogin(l);
//		return list;
//	}

}
